/**
 * 简化FwDialog.vue的使用操作，添加默认值
 */

import  { DialogModel } from '@/types/components';
import { reactive } from 'vue';
// 定义弹框属性
const dialog = reactive<DialogModel>({
    title:'提醒框',
    visible:false,
    width:630,
    height:280
})

// 显示弹框 
const fwDialogOpen = ()=>{
    dialog.visible = true
}
// 隐藏弹框
const fwDialogClose = ()=>{
    dialog.visible = false
}

export {dialog,fwDialogOpen,fwDialogClose }